package com.itheima.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class HelloJob {
//    @Scheduled(cron = "0/5 * * * * ?")

    @XxlJob("helloJob")
    public ReturnT eat(String params){

        System.out.println("5秒中吃一次饭，我想成为一个胖子"+new Date());

        return ReturnT.SUCCESS;
    }
}